Ext.define('DragonApp.view.pub.form.field.CharacterID', {
    extend: 'Ext.form.field.Text',
    alias: 'widget.textfield_cid',
    vtype: 'alphanum',

    validator: function(v) {
        if (6 != (String(v)).length) {
            return (String(v) + ' 账号长度不正确');
        }
        if (!DragonApp.util.Regular.Uid.test(v)) {
            return ('字段格式 ' + String(v) + ' 不正确');
        }
        return true;
    }
});